//
//  NotesTableViewCell.m
//  chanyou
//
//  Created by wanli on 15/1/2.
//  Copyright (c) 2015年 wanli. All rights reserved.
//

#import "NotesTableViewCell.h"
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
@implementation NotesTableViewCell
- (void)dealloc
{
    [_image_urlView release];
    [_name release];
    [_dayAndCount release];
    [_userImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.image_urlView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH - 20, SCREEN_HEIGHT / 3 - 20)];
        self.image_urlView.layer.cornerRadius = 3;
        self.image_urlView.layer.masksToBounds = YES;
        [self.contentView addSubview:_image_urlView];
        [_image_urlView release];
        
        self.userImageView = [[UIImageView alloc]initWithFrame:CGRectMake(20, _image_urlView.frame.size.height - 40, 30, 30)];
        _userImageView.layer.masksToBounds = YES;
        _userImageView.layer.cornerRadius = 15;
        [_image_urlView addSubview:_userImageView];
        [_userImageView release];
        
        self.name = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, 300, 30)];
        _name.font = [UIFont systemFontOfSize:18];
        _name.shadowColor = [UIColor grayColor];
        
        [_name setTextColor:[UIColor whiteColor]];
        [self.contentView addSubview:_name];
        [_name release];
        
        self.dayAndCount = [[UILabel alloc] initWithFrame:CGRectMake(20, 50, 300, 30)];
//        _dayAndCount.shadowColor = [UIColor grayColor];
        _dayAndCount.highlighted = YES;
        _dayAndCount.font = [UIFont systemFontOfSize:14];
        [_dayAndCount setTextColor:[UIColor whiteColor]];
        [self.contentView addSubview:_dayAndCount];
        [_dayAndCount release];
        
        
        
        
        
        
        
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
